
package com.joolun.cloud.mall.api.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.joolun.cloud.mall.common.entity.SeckillHallInfo;
import com.joolun.cloud.mall.common.entity.SeckillInfo;
import com.joolun.cloud.mall.api.mapper.SeckillInfoMapper;
import com.joolun.cloud.mall.api.service.SeckillInfoService;
import org.springframework.stereotype.Service;

/**
 * 秒杀商品
 *
 * @author www.joolun.com
 * @date 2020-08-12 16:16:45
 */
@Service
public class SeckillInfoServiceImpl extends ServiceImpl<SeckillInfoMapper, SeckillInfo> implements SeckillInfoService {

	@Override
	public IPage<SeckillInfo> page2(IPage<SeckillInfo> page, SeckillInfo seckillInfo, SeckillHallInfo seckillHallInfo) {
		return baseMapper.selectPage2(page, seckillInfo, seckillHallInfo);
	}

	@Override
	public SeckillInfo getById2(String id) {
		return baseMapper.selectById2(id);
	}
}
